<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title></title>
    <link href="../../../eui/plugins/layui/css/layui.css" rel="stylesheet" media="all" />
    <link href="../../../eui/css/components.min.css" rel="stylesheet" media="all" />
    <link href="../../../eui/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" media="all" />
</head>

<body>

<form id="editForm" class="layui-form layui-form-pane" lay-filter="editForm" style="padding-top: 0px;text-align: left">
    <input name="id" hidden="hidden"/>
 	<div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label" style="width:120px">数据库字段名：</label>
            <div class="layui-input-inline">
                <input id="innerEName" name="innerEName" lay-verify="required" type="text" class="layui-input" autocomplete="off"/>
            </div>
        </div>
        <div class="layui-inline">
             <label class="layui-form-label" style="width:120px">执行字段名：</label>
             <div class="layui-input-inline" >
                <input id="innerCName" name="innerCName" lay-verify="required" type="text" class="layui-input" autocomplete="off"/>
             </div>
         </div>
 	</div>
 	<div class="layui-form-item">
         <div class="layui-inline">
             <label class="layui-form-label" style="width:120px">源类型：</label>
              <div class="layui-input-inline" >
				<select id="externalType" name="externalType" lay-filter="externalType" lay-verify="required">
				</select>
	          </div>
         </div>
         <div class="layui-inline">
             <label class="layui-form-label" style="width:120px">执行类型：</label>
              <div class="layui-input-inline" >
				<select id="innerType" name="innerType" lay-filter="innerType" lay-verify="required">
				</select>
	          </div>
         </div>
    </div>
 	<div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label" style="width:120px">是否必填：</label>
            <div class="layui-input-inline">
            	<input name="notNull" type="checkbox" lay-skin="switch" lay-text="是|否" value="1">
            </div>
        </div>
    </div>
     <div class="layui-form-item">
     	<div class="layui-inline">
            <label class="layui-form-label" style="width:120px">是否校验：</label>
            <div class="layui-input-inline" style="width:80px">
            	<input name="checkValue" type="checkbox"  lay-skin="switch" lay-text="是|否" value="1">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label" style="width:120px">校验表达式：</label>
            <div class="layui-input-inline" style="width:625px">
                <input name="checkExp"  placeholder="请输入一个返回布尔值的校验表达式，需要校验的参数变量名默认为[参数值]"  type="text" class="layui-input" autocomplete="off"/>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label" style="width:120px">转换表达式：</label>
            <div class="layui-input-inline" style="width:850px">
                <input name="transExp" placeholder="将外部值转换成表达式执行后的值，需要转换的参数变量名默认为[参数值]" type="text" class="layui-input" autocomplete="off"/>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label" style="width:120px">字段描述：</label>
            <div class="layui-input-inline" style="width:850px">
                <input name="description" placeholder="输入字段描述，在规则选择字段时候可以作为提示信息" type="text" class="layui-input" autocomplete="off"/>
            </div>
        </div>
    </div>
    <div class="layui-form-item" style="padding-top: 20px;text-align: center">
        <div>
            <button id="saveBtn" class="layui-btn" lay-submit="" lay-filter="save">保存</button>
            <button type="button" class="layui-btn layui-btn-primary" onclick="closePage()">取消</button>
        </div>
    </div>
</form>
<script src="../../../eui/plugins/layui/layui.js"></script>
<script src="../../../eui/plugins/jquery.min.js"></script>
<script src="../../../eui/js/base.js"></script>
<script src="editField.js"></script>
</body>
</html>